@import "../../variables.scss";

.sc-group-container {
    //border: 1px solid aliceblue;
    overflow: hidden;
    // transition: height 0.28s;
    //padding: 0 10px;
    display: inline-block;
    width: 100%;
    height: 100%;

    .el-tree {
        background: initial;

        .el-tree-node {

            &.is-drop-inner,
            &.is-drop-inner.is-current {
                >.el-tree-node__content {
                    // border: 1px solid $green;
                    // border-radius: 4px;
                    background-color: $bgColorLight2;
                }
            }

            .el-tree-node__content:hover,
            &.is-current>.el-tree-node__content {
                .sc-folder-item {
                    background: #00a289;
                    border-radius: 4px;
                    color: #ffffff;

                    * {
                        color: #ffffff;
                    }

                    .folder-label {
                        color: #ffffff;

                        .nodeLabel {
                            color: #ffffff;
                        }
                    }
                }

                background: transparent;
            }
        }

        .el-tree-node__children,
        .el-icon-caret-right {
            transition: none !important;
        }

        &:hover {
            .el-tree-node__children {
                .el-tree-node {
                    position: relative;

                    .el-tree-node__content {
                        &::before {
                            content: "";
                            position: absolute;
                            width: 1px;
                            height: 100%;
                            background: $textInfo5;
                            margin-left: -6px;
                            top: 0;
                        }
                    }
                }
            }
        }

        .sc-folder-item {
            display: flex;
            align-items: center;
            overflow: hidden;
            height: 100%;
            min-width: 100px;
            padding: 0 5px;
            box-sizing: border-box;
            flex: 1;
            margin-right: 8px;

            .folder-label {
                display: flex;
                overflow: hidden;
                align-items: center;
                flex: 1;

                .nodeLabel {
                    padding-left: 8px;
                    color: #a1a6c4;
                    //border: 1px solid cyan;
                    font-size: 12px;
                    display: inline-block;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    flex: 1;
                    text-align: left;

                    &:hover {
                        color: #00a289;
                    }
                }
            }

            &.drag-over {
                .folder-label {
                    .nodeLabel {
                        text-decoration: underline;
                        color: #00a289;
                    }
                }
            }

            .sc-folder-icon {
                color: #a1a6c4;
                font-size: 16px;
            }
            
            &.is-disabled {
                color: $disableText;

                * {
                    color: $disableText;
                }

                .nodeLabel,
                .sc-folder-icon {
                    color: $disableText !important;
                }
            }
        }

        .el-tree-node__content:hover {

            .add-sub-folder-icon {
                display: inline-block;
            }
        }

        .el-tree-node:focus>.el-tree-node__content {
            background: transparent;
        }

        .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
            .nodeLabel {
                font-weight: 600;
                // text-decoration: underline;
            }

        }
    }

}